<link rel="stylesheet" href="/api/jQuery_Theme/css/custom-theme/jquery-ui-1.8.2.custom.css" type="text/css" />
<link rel="stylesheet" href="/com/snapol_editor/main.css" type="text/css" />  
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" type="text/css" />
 


<script type="text/javascript">
    window.onload = function()
    {
<?php

// falls Web Editor
if ($userData['_usergroup'] == 30) {
   
   echo "toolbar_basic = [['Format', 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList','HorizontalRule','-', 'Table', 'insertImage', 'Link']];";
    
}   


//if ($userData['_usergroup'] > 30) {
   
   echo "toolbar_basic = [['Source', 'Format', 'Bold', 'Italic', '-', 'Cut','Copy','Paste','PasteText','PasteFromWord', '-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','Outdent','Indent', 'NumberedList', 'BulletedList','HorizontalRule','-', 'Table', 'insertImage', 'dataform', 'datatable', 'datalist', 'datadetail', 'com', 'document', 'phpfile', 'cmslink', '-', 'Link'],['Form', 'Button', 'Select', 'TextField', 'Textarea', 'HiddenField', 'Checkbox']];";
    
//}

?>     
        
                                                //[pre_inclusion_url]
       CKEDITOR.plugins.addExternal( 'snapol', '/snapol/edit/ckeditor_plugins/');  
       CKEDITOR.replace('[php_property:id]', 
        {
          
            extraPlugins : 'snapol',
            toolbar : toolbar_basic,
            height: '600px', 
            uiColor:'',
            
    });

    };
</script>